﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NDimArrayNamespace;

namespace QLabValues
{
    public class StructMatrix : NDimArrayNamespace.NDimArray<StructValue>, QLabValues.IQLabValue
    {
        public StructMatrix(params int[] dimensionSize)
            : base(dimensionSize)
        {
        }
        public StructMatrix(StructValue[] data, params int[] dimensionSize)
            : base(data, dimensionSize)
        {
        }

        public IQLabValueType getEnumType()
        {
            return IQLabValueType.StructMatrix;
        }

        public StructMatrix GetSubArray(int[][] subNDimArrayCoordinates)
        {
            NDimArray<StructValue> tempArray = base.GetSubNDimArray(subNDimArrayCoordinates);
            return new StructMatrix(tempArray.Data, tempArray.DimensionSize);
        }
    }
}
